package com.example.stream.demostream.entity.vo;

import com.zhe.web.common.SerializableObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author: author
 * @date: 2021/3/26
 */
@Data
@ApiModel(value = "登陆认证凭证", description = "登陆认证时需要的凭证")
public class CredentialVo implements SerializableObject {

    @ApiModelProperty(value = "登陆方式: sms手机短信验证登陆,password用户名密码登录", required = true, example = "sms")
    private String loginType;

    @ApiModelProperty(value = "账户标识：如手机号", example = "18725441122")
    @NotBlank(message = "账号不能够为空")
    private String identifier;

    @ApiModelProperty(value = "图形验证码", example = "23fs")
    private String imgCode;

    @ApiModelProperty(value = "短信验证码", example = "123456")
    private String smsCode;

    @ApiModelProperty(value = "密码", example = "12345")
    private String password;
}
